package com.lollipop.chain.simplechain;

/**
 * @Author: J.K
 * @Date: 2021-08-31 13:38
 * @Description:
 */
public class MsgProcessor {

    FilterChain fc;

    private String msg;

    public FilterChain getFc() {
        return fc;
    }

    public void setFc(FilterChain fc) {
        this.fc = fc;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String process() {
        return fc.doFilter(msg);
    }
}
